import java.util.ArrayList;
import java.util.Scanner;
public class UserList
	{
		public static void main(String[]args)
		{
			Scanner scan = new Scanner(System.in);
			System.out.print("Name: ");
			String namein = scan.nextLine();
			ArrayList <String> names = new ArrayList<String>();
			names.add(namein);
			System.out.print(names + "\n");
			Scanner scan1 = new Scanner(System.in);
			System.out.print("Name: ");
			String namein1 = scan.nextLine();
			names.add(namein1);
			System.out.print(names + "\n");
			Scanner scan2 = new Scanner(System.in);
			System.out.print("Name: ");
			String namein2 = scan.nextLine();
			names.add(namein2);
			System.out.print(names + "\n");
			Scanner scan3 = new Scanner(System.in);
			System.out.print("Name: ");
			String namein3 = scan.nextLine();
			names.add(namein3);
			System.out.print(names + "\n");
			Scanner scan4 = new Scanner(System.in);
			System.out.print("Name: ");
			String namein4 = scan.nextLine();
			names.add(namein4);
			System.out.print(names + "\n");
			
			Scanner scan5 = new Scanner(System.in);
			System.out.print("Name to remove (number int the list): ");
			int nameout = scan.nextInt();
			names.remove(nameout - 1);
			System.out.print(names + "\n");
			
			System.out.print("DONE!");
		}
	}

